fileSystems.<name>.overlay.useStage1BaseDirectories

If enabled, lowerdir, upperdir and workdir will be prefixed with /sysroot.

Disabling this can be useful to create an overlay over directories which aren't on the real root.

Disabling this does not work with the scripted (i.e. non-systemd) initrd.

Type
boolean
Default
true
Declared
<nixpkgs/nixos/modules/tasks/filesystems/overlayfs.nix>